package com.aliyun.messagemgt.dto.vo.weixin;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @Author: Xiaohang Lv
 * @Date: 2019/5/15 16:42
 */
public class WeixinFileSendModelVO extends WeixinSendModelVO {
    private File file;

    public WeixinFileSendModelVO() {
        super.setMsgtype("file");
        file = new File();
    }

    public File getFile() {
        return file;
    }

    public WeixinFileSendModelVO setFile(File file) {
        this.file = file;
        return this;
    }

    public WeixinFileSendModelVO setMediaId(String mediaId) {
        file.mediaId = mediaId;
        return this;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    static class File {
        private String mediaId;

        public String getMediaId() {
            return mediaId;
        }

        public File setMediaId(String mediaId) {
            this.mediaId = mediaId;
            return this;
        }

        @Override
        public String toString() {
            return ToStringBuilder.reflectionToString(this);
        }
    }
}
